package com.itheima.dao;

import com.itheima.pojo.OrderSetting;

import java.util.Date;
import java.util.HashMap;
import java.util.List;

public interface OrderSettingDao {
    /**
     * 寻找预约有无数据
     * @param orderDate
     * @return
     */
    OrderSetting findOrderSettingByOrderDate (Date orderDate);

    /**
     * 插入预约数据
     * @param orderSetting
     */
    void add(OrderSetting orderSetting);

    /**
     *  更新数据
     * @param orderSetting
     */
    void update(OrderSetting orderSetting);

    /**
     * 根据日期范围查找预约数据
     * @param map
     * @return
     */
    List<OrderSetting> findAllOrderSettingByBate(HashMap<String, Object> map);

    /**
     *  更新预约人数
     * @param orderSetting
     */
    void updateReservations(OrderSetting orderSetting);

    void clearOrderSetting(String today);
}
